package cn.huiyunche.base.service.mappers.ext;

import cn.huiyunche.base.service.vo.PageVo;
import cn.huiyunche.base.service.vo.SUserRouteVo;
import cn.huiyunche.tools.basic.exceptions.BusinessException;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SUserRouteViewMapper {

    /**
     * 分供方－线路列表
     *
     * @param pageVo
     * @param userId
     * @param orginCode
     * @param destCode
     * @return
     * @throws BusinessException
     */
    List<SUserRouteVo> selectByExample(@Param("pageVo") PageVo pageVo, @Param("userId") Long userId, @Param("orginCode") String orginCode, @Param("destCode") String destCode) throws Exception;

    /**
     * 分供方－线路统计
     *
     * @param userId
     * @param orginCode
     * @param destCode
     * @return
     * @throws BusinessException
     */
    int countByExample(@Param("userId") Long userId, @Param("orginCode") String orginCode, @Param("destCode") String destCode) throws Exception;

}
